function main(params) {
    const self = this;
    const pageRootList = self.$$roots();

    api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('d7b86a73-fc91-4d7b-8ed6-d24aebcc08c4','" + params.id + "',['id'])").then((res) => {

        const unitIds = res.result

        let rootPageElement = pageRootList[0];
        // 找到页面中的列表组件元素
        let pageTableList = rootPageElement.$$element("page_widget_list_cw4ybw");
        if (pageTableList) {
            if (pageTableList.dataEngine && pageTableList.dataEngine.state) {

                let queryElement = pageTableList.dataEngine.state.getElement("query_field_wrapper_6ltdtw");
                if (queryElement && queryElement.data && queryElement.data.members) {
                    const queryProjectIdModel = queryElement.data.members[0];
                    queryProjectIdModel.props.defaultValue.value = unitIds;
                }
                let tableCondition = pageTableList.dataEngine.state.getElement("condition_de5q35");
                if (tableCondition) {
                    tableCondition.onQuery();
                }
            }
        }
    }).catch(err => {
        self.$message.error(err.message); // 显示错误提示信息
    });
}



